/* styles.css */

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(to right, #d7fcff, #ffe2cc);
  color: #333;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  transition: background-color 0.5s ease; 
}

#bill-form {
  flex-direction: column;
  background-color: #fff9e6; 
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  width: 100%;
  max-width: 600px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
  position: relative;
}

#bill-form:hover {
  transform: translateY(-5px); 
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); 
}

#bill-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #8a2be2; 
}

#bill-form input[type="date"],
#bill-form input[type="text"],
#bill-form input[type="number"] {
  width: calc(100% - 22px);
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #d1c4e9; 
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease; 
}

#bill-form input[type="date"]:focus,
#bill-form input[type="text"]:focus,
#bill-form input[type="number"]:focus {
  border-color: #4b0082; 
}

#bill-form button {
  padding: 12px 24px;
  background-color: #ff69b4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; 
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

#bill-form button:hover {
  background-color: #da70d6; 
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

#bill-form button:active {
  background-color: #ff1493; 
  transform: translateY(0); 
}

#bill-list {
  background-color: #f0f8ff; 
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
}

#bill-list ul {
  list-style-type: none;
  padding: 0;
}

#bill-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #add8e6; 
}

#bill-list li:last-child {
  border-bottom: none;
}

#bill-list li span {
  flex: 1;
  padding: 0 15px;
  font-size: 16px;
  color: #000080; 
}

#bill-list li button {
  padding: 8px 16px;
  background-color: #ffa07a; 
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

#bill-list li button:hover {
  background-color: #ff69b4; 
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px); 
}

#bill-list li button:active {
  background-color: #ff1493; 
  transform: translateY(0);
}

#bill-total {
  margin-top: 20px;
  padding: 15px 20px;
  background-color: #fff0f5; 
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 1.5em;
  font-weight: bold;
  color: #8b0000; 
}

#button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding: 15px;
  background-color: #f5deb3; 
  border: 1px solid #d2b48c; 
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#button-container button,
#button-container .file-upload-label {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; 
}

#download-button {
  background-color: #6495ed; 
  color: white;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

#download-button:hover {
  background-color: #1e90ff;
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px); 
}

#download-button:active {
  background-color: #0000cd; 
  transform: translateY(0); 
}

#clear-button {
  background-color: #ff6347; 
  color: white;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

#clear-button:hover {
  background-color: #ff4500; 
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px); 
}

#clear-button:active {
  background-color: #8b0000; 
  transform: translateY(0); 
}

#upload-button {
  background-color: #90ee90; 
  color: white;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

#upload-button:hover {
  background-color: #32cd32; 
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px); 
}

#upload-button:active {
  background-color: #00ff00; 
  transform: translateY(0); 
}

.file-upload-label {
  background-color: #ffebcd; 
  color: #8b4513; 
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.file-upload-label:hover {
  background-color: #ffd700; 
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px); 
}

.file-upload-label:active {
  background-color: #ffa500; 
  transform: translateY(0);
}


#pagination-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#pagination-controls button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #ff69b4; 
  color: white;
  transition: background-color 0.3s ease;
}

#pagination-controls button:hover {
  background-color: #da70d6;
}

#pagination-controls button:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

#page-info {
  padding: 0 10px;
  font-size: 16px;
}

#chart-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background-color: #fff1e0; 
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 100%;
  overflow: auto;
  max-height: 500px;
}


#sidebar {
  position: fixed;
  top: 0;
  right: -300px; 
  width: 300px;
  height: 100%;
  background-color: #f9f9f9; 
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2); 
  transition: right 0.3s ease;
  z-index: 1000;
  border-left: 1px solid #ddd;
  box-sizing: border-box; 
}

#sidebar.visible {
  right: 0;
}

#sidebar-content {
  padding: 20px;
  overflow-y: auto;
  height: calc(100% - 80px);
  border-bottom: 1px solid #ddd;
  font-size: 1rem; 
  line-height: 1.6; 
  color: #333; 
}

#sidebar-content h3,
#sidebar-content h4 {
  color: #555; 
}

#sidebar-content p {
  margin: 15px 0;
}

#sidebar-content a {
  color: #007bff; 
  text-decoration: none; 
}

#sidebar-content a:hover {
  text-decoration: underline; 
}

#sidebar-content list {
  padding-left: 20px; 
}

#sidebar-content list li {
  margin-bottom: 10px; 
  list-style-type: disc; 
}

#toggle-sidebar-button {
  position: absolute;
  bottom: 20px;
  left: 500px;
  padding: 10px 20px;
  font-size: 10px;
  cursor: pointer;
  background-color: #ffc46b;
  color: #333;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#toggle-sidebar-button.active {
  background-color: #ddd;
}

#close-sidebar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #333;
}

#download-csv {
  position: relative;
  bottom: 0px;
  left: 0px;
  padding: 10px 20px;
  font-size: 10px;
  cursor: pointer;
  background-color: #00db63;
  color: rgb(74, 74, 74);
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#download-csv:hover {
  background-color: #00e6b3;
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}


